package com.schematic.flixel.examples
{
import org.flixel.FlxState;
import org.flixel.FlxText;
import org.flixel.FlxG;
import org.flixel.data.FlxKeyboard;




public class ExamplesMenu extends FlxState
{

	public function ExamplesMenu()
    {
        super();

    }
    
    override public function create():void
    {
        var menu:FlxText = new FlxText(30, 30, FlxG.width - 60);
        menu.text = "Use your keyboard to play an example:\n\n"
        menu.text += "[1] Animated FlxSprite\n";
        menu.text += "[2] Tilemap\n";
        
        add(menu);
    }
    
    override public function update():void
    {
        if (FlxG.keys.ONE)
            FlxG.state = new AnimationState();
        if (FlxG.keys.TWO)
            FlxG.state = new TilemapState();
    
        super.update();
		

    }
}
}